package com.fmx.BookStore.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.fmx.BookStore.domain.Role;

import java.util.List;

public interface IRoleService extends IService<Role> {
    Role selectRoleById(Long roleId);
    List<Role> listRole(Role role);
    int insertRole(Role role);
    int updateRole(Role role);
    int deleteRole(Long roleId);
    void setRolePermission(Long roleId, List<Long> permissionIds);

    List<Long> getRolePermission(Long roleId);
}
